<!DOCTYPE html>
<html lang="en">
<head>
        <meta charset="UTF-8">
        <title>Title</title>
</head>
<body>
    <h1>欢迎
        <span id="username"></span>
        用户使用教务管理系统
    </h1>
    <script src="lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script src="js/lay-config.js?v=2.0.0" charset="utf-8"></script>
<script>

    layui.use(['jquery'],function () {
        var $ = layui.jquery;

            //获取username，用于动态显示当前用户
            $("#username").text(localStorage.getItem("username"))
    });

</script>
</body>
</html>